package cn.amossun.starter.mybatis.data.security.properties;

import cn.amossun.starter.common.properties.DataSecurityProperties;
import cn.amossun.starter.mybatis.data.security.enums.ConfigTypeEnum;
import lombok.*;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MybatisPlusProperties extends DataSecurityProperties {

    /**
     * 区分Yml以及Redis缓存配置
     */
    private ConfigTypeEnum configType = ConfigTypeEnum.YML;

    /**
     * mybatis 加解密ORM配置集合 v2.0.3.3
     */
    private List<ResultMapConfiguration> ormConfigs;

    private Cache cache = new Cache();

    @Data
    public static class Cache {

        private Integer maximumSize = 100;

        private Integer duration = 10;

    }

}
